//
//  JPFChooseVC.h
//  JPFFramework
//
//  Created by JPFei on 2019/1/5.
//  Copyright © 2019年 JPF All rights reserved.
//

#import <UIKit/UIKit.h>
#import <JPFCoreKit/JPFChooseModel.h>

typedef enum : NSUInteger {
    JPFChoose_None,
    JPFChoose_Single,
    JPFChoose_Mutable,
} JPFChooseType;


@interface JPFChooseVC :  UIViewController<UITableViewDataSource,UITableViewDelegate>

@property (nonatomic, weak) IBOutlet UITableView *tableView;

@property (nonatomic, retain) UIView *headerView;
@property (nonatomic, retain) UIView *footerView;

@property (nonatomic, copy) void (^chooseBlock)(NSArray<JPFChooseModel*> *arr);
@property (nonatomic, copy) void (^cancelBlock)(void);

- (instancetype)initWithChooseType:(JPFChooseType)chooseType;
- (instancetype)initWithChooseType:(JPFChooseType)chooseType isBoxStyle:(BOOL)isBoxStyle;


- (void)showItemsData:(NSArray<NSDictionary *> *)arrData showKey:(NSString *)showKey inViewController:(UIViewController *)vc;

- (void)showItemsData:(NSArray<JPFChooseModel*> *)arr inViewController:(UIViewController *)vc;
- (void)showInViewController:(UIViewController *)vc;
- (void)disappear;
- (void)clearChooseValue;
- (void)setIndexValue:(NSInteger)index isChoose:(BOOL)isChoose;

@end
